﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wicresoft.UnifyShow.Business
{
    public interface IUser_X
    {
        List<UserAndSiteModel> GetSiteIDByName(string name);
        List<SiteBranchModel> GetSiteBranchByID(decimal ID);
        User_XModel GetUserByID(decimal ID);
        SFUser_XModel GetUserByIDSF(decimal ID);
        Decimal GetCountOfTheAllSite();
        User_XModel GetUser_XByName(string name);
        List<User_XModel> GetListPageAndSortUser_X(out Decimal totalRecords, int pageSize = -1, int pageIndex = -1,
            string sortName = "DisplayName", string sortDirection = "Ascending"/*Ascending,Descending*/, string name = "", string displayname = "");

        string UpdateRoleByUserID(SFUser_XModel model, List<decimal> roles_US, List<decimal> roles_GJ);

        int ChangePassword(string login, string pass);

        int Create(SFUser_XModel model, out string resultStr);

        bool Exist(string loginName);
    }
}
